﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ClassModel;
using ClassDAL;

namespace ClassBLL
{
    /// <summary>
    /// 课程信息 Business Access Layer
    /// </summary>
    public class t_class_course_BLL
    {
    /// <summary>
        /// 插入课程信息
        /// </summary>
        /// <param name="courese"></param>
        /// <returns></returns>
        public static int InsertCoures(IList<t_class_course> courese)
        {
            if (courese == null) throw new ArgumentException("courese is null");

            return t_class_course_DAL.InsertCoures(courese);
        }

        /// <summary>
        /// 获取某个(fileid) Excel 表格里的所有课程信息
        /// </summary>
        /// <param name="fileid"></param>
        /// <returns></returns>
        public static List<t_class_course> GetCourseListWithFileID(int fileid)
        {
            return t_class_course_DAL.GetCourseListWithFileID(fileid);
        }
    }
}
